Hello Kevin, hello All
I have tested your suggestions. Sadly to no avail. The location of the files is not crucial nor using a signed version of the app.
I have also setup a new project on my macOS14 Mac with the same result. So it is not a macOS26 problem neither. That makes me wonder more and more.
My AppStore app (bcAnalyze) that does use the related file feature with these files works well on any macOS with these files. The code I am using is older dating back ca. 10 years (originated in Obj-C days and is now Swift since ca. 4 years). The idea of adding a security scoped bookmark to the sidecar file is tempting, but wouldn't help since the original application producing the the sidecar file is more than 10 years old and users may have already millions of file pairs.
There shouldn't be a difference between SwiftUi and AppKit as front-end, but I may also try this in the next days.
Since my AppStore app works, I must oversee something little that has this big effect. I can't otherwise explain the negative result. I have setup a super simple Git project here: https://github.com/vrunkel/RelatedFileTest
Background of these files / apps is: I am producing an automated bat detector since 2007. Since then a Mac app exists (now in its fourth major revision) that implements a bat call finder and saves results for each audio file in a so called bcCalls file containing a plist representation of call measurements. The app exists still outside the AppStore (signed and notarized) and I have roughly 1000 users. They record up to a couple of millions bat call recordings a year each.
When opening a folder and using the security scoped bookmark on the folder, I can load files. Since my app idea will be a document based app, that is not the perfect solution.
Thanks for any further pointers/ideas.
Have a nice week, Volker
Topic:
App & System Services
SubTopic:
Core OS
Tags: